package com.lbd.gulimall.auth.feign;

import com.lbd.common.to.GiteeSocialUser;
import com.lbd.common.utils.R;
import com.lbd.gulimall.auth.vo.UserLoginVO;
import com.lbd.gulimall.auth.vo.UserRegisterVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: linbd
 * @Description:
 * @Date: 2023/3/18 21:42
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {
    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVO userRegisterVO);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVO userLoginVO);

    @PostMapping("/member/member/socialUser")
    R socialLogin(@RequestBody GiteeSocialUser socialUser);
}
